Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broadcast transactions only to a single healthy RPC instead of all #14635

Merged
merged 2 commits into from
Oct 4, 2024

Conversation

dhaidashenko
Copy link
Collaborator

Hedera doesn't have a mempool and has instant finality. Sending the transaction to the first node gets the transaction included so broadcasting to other nodes after leads to nonce too low errors. This normally wouldn't be a problem since these types of errors are usually surfaced upfront by the RPC, but in the case of Hedera, they make it on-chain and the error is only available through receipts which means NOPs have to pay for these transactions.

To avoid this we should only broadcast transactions to a single active RPC.

@dhaidashenko dhaidashenko marked this pull request as ready for review October 2, 2024 16:49
@dhaidashenko dhaidashenko requested review from a team as code owners October 2, 2024 16:49
@reductionista reductionista added this pull request to the merge queue Oct 4, 2024
Merged via the queue into develop with commit ee1d6e3 Oct 4, 2024
130 checks passed
@reductionista reductionista deleted the feature/BCFR-978-hedera-send-tx-opt branch October 4, 2024 01:10
simsonraj pushed a commit that referenced this pull request Oct 14, 2024
…14635)

* Broadcast transactions only to a single healthy RPC instead of all healthy RPCs to avoid redundant relay fees on Hedera

* fix tx test

(cherry picked from commit ee1d6e3)
simsonraj added a commit that referenced this pull request Oct 15, 2024
* Enabling dynamic gas estimation for Hedera (#14601)

* turned on hedera gas estimation

* added hedera test overrides

* enable dynamic gas Limit for Hedera

* updated chainlink image

(cherry picked from commit 40e9af8)

* Broadcast transactions only to a single healthy RPC instead of all  (#14635)

* Broadcast transactions only to a single healthy RPC instead of all healthy RPCs to avoid redundant relay fees on Hedera

* fix tx test

(cherry picked from commit ee1d6e3)

* Set chainType in chain client (#14719)

* Set chain client chainType

* Added changeset

(cherry picked from commit de9ce67)

* solana: add compute unit limit functionality (#14576)

* solana: add compute unit limit functionality

* fix test: solana node CLI

* fix: e2e test artifact upload to container

* retry build with fresh commit

* changeset

* bump solana to merged commit

(cherry picked from commit 0e35bc7)

---------

Co-authored-by: Dmytro Haidashenko <34754799+dhaidashenko@users.noreply.github.com>
Co-authored-by: amit-momin <108959691+amit-momin@users.noreply.github.com>
Co-authored-by: Aaron Lu <50029043+aalu1418@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants